import { request } from '@/utils/request'

// 查询不计考核列表
export function listDisregard(query) {
  return request({
    url: '/workorder/disregardKpi/list',
    method: 'get',
    params: query
  })
}

// 查询不计考核列表
export function listDisregardAll(query) {
  return request({
    url: '/workorder/disregardKpi/list/all',
    method: 'get',
    params: query
  })
}

// 查询不计考核详细
export function getDisregard(id) {
  return request({
    url: '/workorder/disregardKpi/' + id,
    method: 'get'
  })
}

// 新增不计考核
export function addDisregard(data) {
  return request({
    url: '/workorder/disregardKpi',
    method: 'post',
    data: data
  },{
    successMsg:"操作成功！"
  })
}

// 修改不计考核
export function updateDisregard(data) {
  return request({
    url: '/workorder/disregardKpi',
    method: 'put',
    data: data
  })
}

// 删除不计考核
export function delDisregard(id) {
  return request({
    url: '/workorder/disregardKpi/' + id,
    method: 'delete'
  })
}

// 审核流程
approveDisregard
export function approveDisregard(data) {
  return request({
    url: '/workorder/disregardKpi/approve',
    method: 'post',
    data: data
  },{
    successMsg:"操作成功！"
  })
}